package com.ybkj.daijia.server.mapper;

import com.ybkj.daijia.server.model.DriverLevelMoneyTimeDetail;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DriverLevelMoneyTimeDetailMapper {

    /**
     * 保存服务人员提成详情
     *
     * @param driverLevelDetail
     * @return
     */
    int insertRecord(DriverLevelMoneyTimeDetail driverLevelMoneyTimeDetail);

    /**
     * 根据主键查询服务人员提成详情
     *
     * @param id
     * @return
     */
    DriverLevelMoneyTimeDetail selectByPrimaryKey(Long id);

    /**
     * 根据服务人员登记查询提成信息
     *
     * @param driverLevelId
     * @return
     */
    List<DriverLevelMoneyTimeDetail> selectByDriverLevel(
        @Param("driverLevelId") Long driverLevelId);

    /**
     * 根据主键删除提成详细信息
     *
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 根据服务人员等级删除提成详细信息
     *
     * @param driverLevelId
     * @return
     */
    int deleteByDriverLevel(@Param("driverLevelId") Long driverLevelId);

    /**
     * 根据主键提成详细信息
     *
     * @param driverLevelDetail
     * @return
     */
    int updateByPrimaryKey(DriverLevelMoneyTimeDetail driverLevelMoneyTimeDetail);

    /**
     * 批量查询提成详细信息
     *
     * @param driverLevelDetails
     * @return
     */
    int batchInsertRecord(List<DriverLevelMoneyTimeDetail> driverLevelMoneyTimeDetails);
}
